package com.poet.quick.ssh.service.impl;

import java.io.Serializable;
import java.util.List;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;

import com.poet.quick.ssh.dao.GradeDao;
import com.poet.quick.ssh.entity.Grade;
import com.poet.quick.ssh.service.GradeService;

@Service("gradeService")
public class GradeServiceImpl implements GradeService {

	@Resource 
	private GradeDao gradeDao;
	
	@Override
	public List<Grade> findAll() {
		return gradeDao.findAll();
	}

	@Override
	public List<Grade> find(String hql, Object... args) {
		return gradeDao.find(hql, args);
	}

	@Override
	public Grade get(Serializable id) {
		return gradeDao.get(id);
	}

	@Override
	public boolean update(Grade grade) {
		return gradeDao.update(grade);
	}

	@Override
	public boolean delete(Grade grade) {
		return gradeDao.delete(grade);
	}

	@Override
	public void save(Grade grade) {
		gradeDao.save(grade);
	}

}
